<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
   <%@ include file="/common/CimsCommon.jsp" %>
  <title>新天报表</title>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="<%=basePath%>/css/cims/cmmBase.css">
  <link rel="stylesheet" href="<%=basePath%>/css/default/om-default.css">
  <script type="text/javascript" src="${basePath}/js/cims/publicJs/operamasks-ui.min.js"></script>
  <script type="text/javascript" src="${basePath}/js/cims/subsidiary/queryTCMmStatement.js"></script>
<!-- 相关js方法 -->
<script type="text/javascript">
	var baseUrl='${basePath}';
	//页面加载完后 
	$(document).ready(function(){
		 Cmm.util.dateInputInit("statement1");
		 Cmm.util.dateInputInit("statement10");
		 Cmm.util.dateInputInit("statement2");
		 Cmm.util.dateInputInit("statement20");
		 Cmm.util.dateInputInit("statement3");
		 Cmm.util.dateInputInit("statement30");
		 Cmm.util.dateInputInit("statement4");
		 Cmm.util.dateInputInit("statement40");
		 Cmm.util.dateInputInit("statement6");
		 Cmm.util.dateInputInit("statement60");
		 Cmm.util.dateInputInit("statement7");
		 Cmm.util.dateInputInit("statement70");
	});
		
//导出
function exportStatement1(obj){
	
	var cooperorgCode = $("#cooperorgCode option:selected").val();
	if(null==cooperorgCode||cooperorgCode==''){
		alert("请选择合作机构！");
		return;
	}
	
	
	if(cooperorgCode!="XT"){
		alert("此功能现仅提供能新天报表导出！");
		return;
	}
	
	$('#message').hide();
	var id = obj.id.split("And");
	var url = $("#"+id[2]).val();
	if(confirm("确认导出！")){
        location.href=baseUrl+url+"?cooperorgCode="+cooperorgCode;
    }
}

</script>
 
</head>
<body style="background-color:#FFFFFF">

	
	
<div id="formPageSwap">
  <br/>
<form id="addNewsFormData" name="addNewsFormData" isCheck="true" action="com.jy.modules.cims.creditDeal.controller.TCMmCooperorgDealController">
 <table id="addNewsTableId" class="formTableSwap" style="background:#D9D8DF;" border="0" align="center" cellpadding="0" cellspacing="1" >
<tr>
<td colspan="6" align="center" class="thTop">合作机构 </td>
</tr>

<tr>
	<td colspan="6" >
		<select id="cooperorgCode" name="cooperorgCode" >
			<option selected = "selected" value="XT">新天</option>
		</select>
	</td>
</tr>

<tr>
<td colspan="6" align="center" class="thTop">报表操作 </td>
</tr>
<tr>
	<th> 放款前拒绝放贷明细 ：</th>
	<th> 开始日期 ：</th>
	<td>
		<input id="statement1" type="text" value="">
	</td>
	<th> 结束日期 ：</th>
	<td>
		<input id="statement10" type="text" value="">
		<input id="statement11" type="hidden" value="/tCMmSubsidiary/exportLoanRefused">
	</td>
	<td>
		<input id="statement1Andstatement10Andstatement11" type="button" onclick="exportStatement(this)" value="导出">
	</td>
</tr>
<tr style="display: none"><!-- 对方接口没开发完 -->
	<th> 非代扣主动还款 ：</th>
	<th> 开始日期 ：</th>
	<td>
		<input id="statement2" type="text" value="">
	</td>
	<th> 结束日期 ：</th>
	<td>
		<input id="statement20" type="text" value="">
		<input id="statement21" type="hidden" value="/tCMmSubsidiary/exportNoWithholdingActiveRepayment">
	</td>
	<td>
		<input id="statement2Andstatement20Andstatement21" type="button" onclick="exportStatement(this)" value="导出">
	</td>
</tr>
<tr>
	<th> 一次性结清提前还款明细：</th>
	<th> 开始日期 ：</th>
	<td>
		<input id="statement3" type="text" value="">
	</td>
	<th> 结束日期 ：</th>
	<td>
		<input id="statement30" type="text" value="">
		<input id="statement31" type="hidden" value="/tCMmSubsidiary/exportAdvancFinish">
	</td>
	
	<td>
		<input id="statement3Andstatement30Andstatement31" type="button" onclick="exportStatement(this)" value="导出">
	</td>
</tr>
<tr>
	<th> 预缴提前还款明细：</th>
	<th> 开始日期 ：</th>
	<td>
		<input id="statement4" type="text" value="">
	</td>
	<th> 结束日期 ：</th>
	<td>
		<input id="statement40" type="text" value="">
		<input id="statement41" type="hidden" value="/tCMmSubsidiary/exportAdvanceRepayment">
	</td>
	
	<td>
		<input id="statement4Andstatement40Andstatement41" type="button" onclick="exportStatement(this)" value="导出">
	</td>
</tr>
<tr>
	<th> 银行账户变更 ：</th>
	<th></th>
	<td>
		
	</td>
	<th></th>
	<td>
		
		<input id="statement51" type="hidden" value="/tCMmSubsidiary/exportBankAcctChange">
	</td>
	
	<td>
		<input id="statement5Andstatement50Andstatement51" type="button" onclick="exportStatement1(this)" value="导出">
	</td>
</tr>

<tr>
	<th> 非代扣主动还款清单 ：</th>
	<th> 开始日期 ：</th>
	<td>
		<input id="statement6" type="text" value="">
	</td>
	<th> 结束日期 ：</th>
	<td>
		<input id="statement60" type="text" value="">
		<input id="statement61" type="hidden" value="/tCMmSubsidiary/exportRepaymentInfo_XT">
	</td>
	
	<td>
		<input id="statement6Andstatement60Andstatement61" type="button" onclick="exportStatement(this)" value="导出">
	</td>
</tr>
<tr>
	<th> 预缴提前还款后提款明细 ：</th>
	<th> 开始日期 ：</th>
	<td>
		<input id="statement7" type="text" value="">
	</td>
	<th> 结束日期 ：</th>
	<td>
		<input id="statement70" type="text" value="">
		<input id="statement71" type="hidden" value="/tCMmSubsidiary/exportPrerepayDraw_Detail">
	</td>
	
	<td>
		<input id="statement7Andstatement70Andstatement71" type="button" onclick="exportStatement(this)" value="导出">
	</td>
</tr>

</table>

</form>
<div class="expandToolbar">
		<span class="submitBtn mouseName" onclick="parent.tabs.close()">关闭</span>
		<br><br><br>
		<div id="message"><span style="color: red;">${error}</span></div>
</div>
</div>
	

</body>

</html>
